namespace admin.core.Entities;

public abstract class EntityBase
{
    // 主键
    public Guid Id { get; set; }

    // 编号
    public string? Code { get; set; }

    // 是否启用
    public bool IsActived { get; set; } = true;

    // 是否删除
    public bool IsDeleted { get; set; } = false;

    // 创建时间

    public DateTime CreatedAt
    {
        get; set;
    } = DateTime.UtcNow;

    // 创建时间

    public DateTime UpdatedAt
    {
        get; set;
    } = DateTime.UtcNow;

    // 创建者
    public Guid CreatedBy { get; set; } = Guid.Empty;

    // 修改者
    public Guid UpdatedBy { get; set; } = Guid.Empty;

    // 评论
    public string? Remarks { get; set; }
}